package Routers

import (
	"fmt"
	"server5/Interface"
	"server5/server"
	"server5/utils"
)

type StartGame struct {

}

func (s StartGame) Func(request Interface.IRequest) {
	if request.GetConnection().User().Status() != utils.Online{
		fmt.Println("不处理开始游戏消息")
		return
	}
	fmt.Println("开始处理开始游戏消息")
	server.GetGameLobby().AddReadyUser(request.GetConnection().User().UserInfo().UserName)
}